<template>
  <div class="count">
    <h1>{{ count }}</h1>
    <button @click="add"></button>
  </div>
</template>

<script>
export default {
  name: "Count",
  data() {
    count: 0;
  },
  methods:{
    add(){
      this.count++
    }
  }
};
</script>

<style scoped>
.count {
  background: yellowgreen;
  height: 100px;
}
</style>